export const basicRoutes = [
  {
    path: "/login",
    component: () => import("../views/login/index.vue"),
  },
  {
    path: "/",
    component: () => import("@/components/MainLayout.vue"),
    name: "MainLayout",
    children: [
      {
        path: "/",
        name: "首页",
        component: () => import("@/views/home/index.vue"),
        meta: { icon: "House", showInSidebar: true },
      },
      {
        path: "positionAdd",
        name: "创建职位",
        meta: { icon: "Compass", showInSidebar: false },
        component: () => import("@/views/position/add.vue"),
      },
      {
        path: "position",
        name: "职位管理",
        meta: { icon: "Odometer", showInSidebar: true },
        component: () => import("@/views/position/index.vue"),
      },
      {
        path: "enterpriseManagementAdd",
        name: "创建/编辑企业",
        meta: { icon: "Odometer", showInSidebar: false },
        component: () => import("@/views/enterpriseManagement/add.vue"),
      },
      {
        path: "enterpriseManagement",
        name: "企业管理",
        meta: { icon: "Odometer", showInSidebar: true },
        component: () => import("@/views/enterpriseManagement/index.vue"),
      },
      {
        path: "enterpriseCertification",
        name: "企业认证",
        meta: { icon: "Odometer", showInSidebar: true },
        component: () => import("@/views/enterpriseCertification/index.vue"),
      },
      {
        path: "root",
        name: "路由管理",
        meta: { icon: "Odometer", showInSidebar: true },
        component: () => import("@/views/root/index.vue"),
      },
      {
        path: "role",
        name: "系统管理",
        meta: { icon: "Odometer", showInSidebar: true },
        children: [
          {
            path: "roleList",
            name: "角色管理",
            meta: { icon: "Compass" },
            component: () => import("@/views/role/index.vue"),
          },
          {
            path: "roleEmpower",
            name: "账号授权",
            meta: { icon: "Compass" },
            component: () => import("@/views/role/empower.vue"),
          },
          {
            path: "rightsManagement",
            name: "权限管理",
            meta: { icon: "Compass" },
            component: () => import("@/views/rightsManagement/index.vue"),
          },
          {
            path: "routesManagement",
            name: "路由管理",
            meta: { icon: "Compass" },
            component: () => import("@/views/routesManagement/index.vue"),
          },
        ],
      },
      {
        path: "roleAdd",
        name: "添加/编辑管理",
        meta: { icon: "Odometer", showInSidebar: false },
        component: () => import("@/views/role/add.vue"),
      },
    ],
  },
];

